package com.zhx.real.security.session;

import org.springframework.security.web.session.InvalidSessionStrategy;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author zhanghaixuan
 * @create 2017/11/26-下午10:19
 **/
public class ZhxInvalidSessionStrategy extends AbstractSessionStrategy implements InvalidSessionStrategy {

	public ZhxInvalidSessionStrategy() {
        super();
    }

    @Override
    public void onInvalidSessionDetected(HttpServletRequest request, HttpServletResponse response)
			throws IOException, ServletException {
        onSessionInvalid(request, response);
    }

}
